package com.atos.howl.chaos.pdm.service.impl;

import com.atos.howl.chaos.pdm.dto.VideoAppendInfo;
import com.atos.howl.chaos.pdm.entity.ChaosVideo;
import com.atos.howl.chaos.pdm.entity.ChaosVideoCoverImg;
import com.atos.howl.chaos.pdm.entity.ChaosVideoFenqu;
import com.atos.howl.chaos.pdm.mapper.CoverMapper;
import com.atos.howl.chaos.pdm.mapper.FenquMapper;
import com.atos.howl.chaos.pdm.mapper.VideoAppendInfoMapper;
import com.atos.howl.chaos.pdm.mapper.VideoMapper;
import com.atos.howl.chaos.pdm.service.VideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Howl-Xu
 * @version 1.0.0
 * @Description: 请描述一下这个类文件吧
 * @createTime 2020年02月20日 10:00:00
 */
@Service
public class VideoServiceImpl implements VideoService {
    @Resource
    private VideoMapper videoMapper;
    @Resource
    private CoverMapper coverMapper;
    @Resource
    private FenquMapper fenquMapper;
    @Resource
    private VideoAppendInfoMapper videoAppendInfoMapper;

    @Override
    public void saveVideoInfo(ChaosVideo chaosVideo) {
        videoMapper.saveVideoInfo(chaosVideo);
    }

//    @Override
//    public String getVideoPathByVideoName(String videoName) {
//        return  videoMapper.getVideoPathByVideoName(videoName);
//    }

    @Override
    public void saveChaosVideoCoverImg(ChaosVideoCoverImg coverImg) {
        coverMapper.saveChaosVideoCoverImg(coverImg);
    }

    @Override
    public void saveVideoFenqu(ChaosVideoFenqu fenqu) {
        fenquMapper.saveVideoFenqu(fenqu);
    }

    @Override
    public void saveVideoAppendInfo(VideoAppendInfo videoAppendInfo) {
        videoAppendInfoMapper.saveVideoAppendInfo(videoAppendInfo);
    }
}
